package com.example.bili.service.impl;

import com.example.bili.entity.Favorer;
import com.example.bili.dao.FavorerDao;
import com.example.bili.service.FavorerService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.PageRequest;


/**
 * (Favorer)表服务实现类
 *
 * @author makejava
 * @since 2025-02-20 11:02:08
 */
@Service
public class FavorerServiceImpl implements FavorerService {
    @Resource
    private FavorerDao favorerDao;


    @Override
    public boolean addFavorer(Integer userId, String fName) {
        return favorerDao.addFavorer(userId,fName)>0;
    }

}
